home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #4 / K-CD-4-2002.ISO / Empire Earth / EEDemo.exe / Disk1 / Random Map Scripts / Common / Common Conditions.rmv next >
Encoding:
Text File  |  2001-09-27  |  5.7 KB  |  124 lines

  1. ////////////////////////////////////////////////////////////////////
  2. //
  3. // Common Conditions.rmv
  4. //
  5. // Defines a common set of conditions used for RMV scalability.
  6. //
  7. // Copyright ⌐ 1998, Stainless Steel Studios, Inc. All rights reserved.
  8. // PROPRIETARY and CONFIDENTIAL.
  9. //
  10. // $Author: Scott Marison $
  11. // $Date: 6/27/01 12:34p $
  12. // $Revision: 3 $
  13. //
  14. ////////////////////////////////////////////////////////////////////
  15.  
  16.  
  17. #if            NOTDEFINED(COMMON_CONDITIONS_RMV)
  18. #define        (COMMON_CONDITIONS_RMV,1)
  19.  
  20.  
  21. ////////////////////////////////////////////////////////////////////
  22. // Map size conditions
  23.  
  24. #define        (IsTinyMap,                        EQ($MapSize, TinyMap))
  25. #define        (IsSmallMap,                    EQ($MapSize, SmallMap))
  26. #define        (IsMediumMap,                    EQ($MapSize, MediumMap))
  27. #define        (IsLargeMap,                    EQ($MapSize, LargeMap))
  28. #define        (IsHugeMap,                        EQ($MapSize, HugeMap))
  29. #define        (IsGiganticMap,                    EQ($MapSize, GiganticMap))
  30.  
  31.  
  32. ////////////////////////////////////////////////////////////////////
  33. // Player count conditions
  34.  
  35. #define        (Is2Players,                    EQ($PlayerCount, 2))
  36. #define        (Is3Players,                    EQ($PlayerCount, 3))
  37. #define        (Is4Players,                    EQ($PlayerCount, 4))
  38. #define        (Is5Players,                    EQ($PlayerCount, 5))
  39. #define        (Is6Players,                    EQ($PlayerCount, 6))
  40. #define        (Is7Players,                    EQ($PlayerCount, 7))
  41. #define        (Is8Players,                    EQ($PlayerCount, 8))
  42. #define        (Is9Players,                    EQ($PlayerCount, 9))
  43. #define        (Is10Players,                    EQ($PlayerCount, 10))
  44. #define        (Is11Players,                    EQ($PlayerCount, 11))
  45. #define        (Is12Players,                    EQ($PlayerCount, 12))
  46. #define        (Is13Players,                    EQ($PlayerCount, 13))
  47. #define        (Is14Players,                    EQ($PlayerCount, 14))
  48. #define        (Is15Players,                    EQ($PlayerCount, 15))
  49. #define        (Is16Players,                    EQ($PlayerCount, 16))
  50.                                                 
  51. #define        (LessThan4Players,                LT($PlayerCount, 4))
  52. #define        (LessThan5Players,                LT($PlayerCount, 5))
  53. #define        (LessThan6Players,                LT($PlayerCount, 6))
  54. #define        (LessThan7Players,                LT($PlayerCount, 7))
  55. #define        (LessThan8Players,                LT($PlayerCount, 8))
  56. #define        (LessThan9Players,                LT($PlayerCount, 9))
  57. #define        (LessThan10Players,                LT($PlayerCount, 10))
  58. #define        (LessThan11Players,                LT($PlayerCount, 11))
  59. #define        (LessThan12Players,                LT($PlayerCount, 12))
  60. #define        (LessThan13Players,                LT($PlayerCount, 13))
  61. #define        (LessThan14Players,                LT($PlayerCount, 14))
  62. #define        (LessThan15Players,                LT($PlayerCount, 15))
  63. #define        (LessThan16Players,                LT($PlayerCount, 16))
  64.                                             
  65. #define        (GreaterThan2Players,            GT($PlayerCount, 2))
  66. #define        (GreaterThan3Players,            GT($PlayerCount, 3))
  67. #define        (GreaterThan4Players,            GT($PlayerCount, 4))
  68. #define        (GreaterThan5Players,            GT($PlayerCount, 5))
  69. #define        (GreaterThan6Players,            GT($PlayerCount, 6))
  70. #define        (GreaterThan7Players,            GT($PlayerCount, 7))
  71. #define        (GreaterThan8Players,            GT($PlayerCount, 8))
  72. #define        (GreaterThan9Players,            GT($PlayerCount, 9))
  73. #define        (GreaterThan10Players,            GT($PlayerCount, 10))
  74. #define        (GreaterThan11Players,            GT($PlayerCount, 11))
  75. #define        (GreaterThan12Players,            GT($PlayerCount, 12))
  76. #define        (GreaterThan13Players,            GT($PlayerCount, 13))
  77. #define        (GreaterThan14Players,            GT($PlayerCount, 14))
  78.  
  79.  
  80. ////////////////////////////////////////////////////////////////////
  81. // Starting epoch conditions
  82.  
  83. #define        (IsPaleoEpoch,                    EQ($StartEpoch, PaleoEpoch))
  84. #define        (IsStoneEpoch,                    EQ($StartEpoch, StoneEpoch))
  85. #define        (IsCopperEpoch,                    EQ($StartEpoch, CopperEpoch))
  86. #define        (IsBronzeEpoch,                    EQ($StartEpoch, BronzeEpoch))
  87. #define        (IsDarkEpoch,                    EQ($StartEpoch, DarkEpoch))
  88. #define        (IsMiddleEpoch,                    EQ($StartEpoch, MiddleEpoch))
  89. #define        (IsRenaissanceEpoch,            EQ($StartEpoch, RenaissanceEpoch))
  90. #define        (IsImperialEpoch,                EQ($StartEpoch, ImperialEpoch))
  91. #define        (IsIndustrialEpoch,                EQ($StartEpoch, IndustrialEpoch))
  92. #define        (IsWW1Epoch,                    EQ($StartEpoch, WW1Epoch))
  93. #define        (IsWW2Epoch,                    EQ($StartEpoch,    WW2Epoch))
  94. #define        (IsModernEpoch,                    EQ($StartEpoch, ModernEpoch))
  95. #define        (IsInformationEpoch,            EQ($StartEpoch, InformationEpoch))
  96. #define        (IsNanoEpoch,                    EQ($StartEpoch, NanoEpoch))
  97.  
  98. #define        (LessThanCopperEpoch,            LT($StartEpoch, CopperEpoch))
  99. #define        (LessThanBronzeEpoch,            LT($StartEpoch, BronzeEpoch))
  100. #define        (LessThanDarkEpoch,                LT($StartEpoch, DarkEpoch))
  101. #define        (LessThanMiddleEpoch,            LT($StartEpoch, MiddleEpoch))
  102. #define        (LessThanRenaissanceEpoch,        LT($StartEpoch, RenaissanceEpoch))
  103. #define        (LessThanImperialEpoch,            LT($StartEpoch, ImperialEpoch))
  104. #define        (LessThanIndustrialEpoch,        LT($StartEpoch, IndustrialEpoch))
  105. #define        (LessThanWW1Epoch,                LT($StartEpoch, WW1Epoch))
  106. #define        (LessThanWW2Epoch,                LT($StartEpoch,    WW2Epoch))
  107. #define        (LessThanModernEpoch,            LT($StartEpoch, ModernEpoch))
  108. #define        (LessThanInformationEpoch,        LT($StartEpoch, InformationEpoch))
  109. #define        (LessThanNanoEpoch,                LT($StartEpoch, NanoEpoch))
  110.  
  111. #define        (GreaterThanPaleoEpoch,            GT($StartEpoch, PaleoEpoch))
  112. #define        (GreaterThanStoneEpoch,            GT($StartEpoch, StoneEpoch))
  113. #define        (GreaterThanCopperEpoch,        GT($StartEpoch, CopperEpoch))
  114. #define        (GreaterThanBronzeEpoch,        GT($StartEpoch, BronzeEpoch))
  115. #define        (GreaterThanDarkEpoch,            GT($StartEpoch, DarkEpoch))
  116. #define        (GreaterThanMiddleEpoch,        GT($StartEpoch, MiddleEpoch))
  117. #define        (GreaterThanRenaissanceEpoch,    GT($StartEpoch, RenaissanceEpoch))
  118. #define        (GreaterThanImperialEpoch,        GT($StartEpoch, ImperialEpoch))
  119. #define        (GreaterThanIndustrialEpoch,    GT($StartEpoch, IndustrialEpoch))
  120. #define        (GreaterThanWW1Epoch,            GT($StartEpoch, WW1Epoch))
  121. #define        (GreaterThanWW2Epoch,            GT($StartEpoch,    WW2Epoch))
  122. #define        (GreaterThanModernEpoch,        GT($StartEpoch, ModernEpoch))
  123.  
  124. #endif        // NOTDEFINED(COMMON_CONDITIONS_RMV)